package com.xquant.system.api;

import com.xquant.common.core.constant.ServiceNameConstants;
import com.xquant.system.api.factory.RemoteDailyPriceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(contextId = "dailyPriceService" , value = ServiceNameConstants.MARKETDATA_SERVICE , fallbackFactory = RemoteDailyPriceFallbackFactory.class)
public interface RemoteDailyPriceService {

    @RequestMapping(value = "/instrument/remoteGetdailyprice.action")
    public Map getDailyPriceService(@RequestParam Map<String, Object> param);

    @RequestMapping(value = "/instrument/remoteGetdailypriceByBegDate.action")
    public Map getdailypriceByBegDate(@RequestParam Map<String, Object> param);

}
